#include <stdio.h>

static int a[100][100];

int main()
{
	scanf("%d", &n);
	int line = 0;
	int col = 0;

	int data = 1;
	for ( int i = 1; i <= 4; i++ ) {
		int line = 0;
		int col = 0;
		for ( int j = i; j >= 0; j-- ) {
			a[i][j] = data ++;
			
		}
	}
	
	i = 1
	a[line][col] = i;
	
	i = 2
	a[line+1][col] = i;

	i = 3
	a[line][col + 1] = i;

	i = 3
	a[line+1][col + 1] = i;
	
		
	return 0;
}
